package io.renren.modules.service.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 
 * @author chenzh
 * @email ${email}
 * @date 2019-05-06 23:38:00
 */
@TableName("tb_product_name")
@Data
public class ProductNameEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId
	@NotNull(message = "产品名称id不能为空", groups = UpdateGroup.class)
	private Integer id;
	/**
	 * 产品名称
	 */
	@NotBlank(message = "请输入产品名称", groups = {AddGroup.class, UpdateGroup.class})
	private String name;
	/**
	 * 创建时间
	 */
	private Date createTime;

}
